package com.zking.service.impl;

import com.zking.dao.domain.ProfitMonth;
import com.zking.dao.mapper.PayMapper;
import com.zking.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Tanglei
 * @date 2020/8/22 - 10:00
 */
@Service
public class PayServiceImpl implements PayService {

    @Autowired
    PayMapper payMapper;

    @Override
    public List<ProfitMonth> queryAmountMonthly() {
        List<ProfitMonth> profitMonths = payMapper.queryAmountMonthly();
        return profitMonths;
    }

    @Override
    public Double payAmountTotal() {
        return payMapper.payAmountTotal();
    }
}
